home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / devices / audio.h next >
C/C++ Source or Header  |  1996-09-10  |  1KB  |  70 lines

  1. #ifndef DEVICES_AUDIO_H
  2. #define DEVICES_AUDIO_H 1
  3. /*
  4. ** audio.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/03/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for audio.h
  17. */
  18. #ifndef IOAudioPtr ADDRESS
  19. #define IOAudioPtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for audio.h
  23. */      
  24.      
  25.  
  26. #ifndef EXEC_IO_H
  27. #include <exec/io.h>
  28. #endif
  29.  
  30. #define AUDIONAME       "audio.device"
  31.  
  32. #define ADHARD_CHANNELS     4
  33.  
  34. #define ADALLOC_MINPREC     -128
  35. #define ADALLOC_MAXPREC     127
  36.  
  37. #define ADCMD_FREE      (CMD_NONSTD+0)
  38. #define ADCMD_SETPREC       (CMD_NONSTD+1)
  39. #define ADCMD_FINISH        (CMD_NONSTD+2)
  40. #define ADCMD_PERVOL        (CMD_NONSTD+3)
  41. #define ADCMD_LOCK      (CMD_NONSTD+4)
  42. #define ADCMD_WAITCYCLE     (CMD_NONSTD+5)
  43. #define ADCMD_ALLOCATE      32
  44.  
  45. #define ADIOB_PERVOL        4
  46. #define ADIOF_PERVOL        (16)
  47. #define ADIOB_SYNCCYCLE     5
  48. #define ADIOF_SYNCCYCLE     (32)
  49. #define ADIOB_NOWAIT        6
  50. #define ADIOF_NOWAIT        (64)
  51. #define ADIOB_WRITEMESSAGE  7
  52. #define ADIOF_WRITEMESSAGE  (128)
  53.  
  54. #define ADIOERR_NOALLOCATION    -10
  55. #define ADIOERR_ALLOCFAILED -11
  56. #define ADIOERR_CHANNELSTOLEN   -12
  57.  
  58. STRUCT IOAudio  
  59.     IORequest ioa_Request 
  60.     SHORTINT ioa_AllocKey 
  61.     ADDRESS   ioa_Data 
  62.     LONGINT ioa_Length 
  63.     SHORTINT ioa_Period 
  64.     SHORTINT ioa_Volume 
  65.     SHORTINT ioa_Cycles 
  66.     _Message ioa_WriteMsg 
  67. END STRUCT 
  68.  
  69. #endif  /* DEVICES_AUDIO_H */
  70.